package com.example.demo.entity.base;

import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public class TreeEntity implements Serializable{
	private static final long serialVersionUID = 3327782031331305148L;

	/**
	 * 节点标题 
	 */
	private String title;
	
	/**
	 * 节点索引
	 */
	private String id;
	
	/**
	 * 父节点id
	 */
	private String parentId;
	
	/**
	 * 子节点
	 */
	private List<TreeEntity> children;

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<TreeEntity> getChildren() {
		return children;
	}

	public void setChildren(List<TreeEntity> children) {
		this.children = children;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSONObject.toJSONString(this);
	}
}
